In the case we have a native window, we don't need to crop it to a
non-native subrectangle, as abs_x / abs_y / width / height are all 0.
surface = get_window_surface (window);
- return cairo_surface_create_for_rectangle (surface,
- window->abs_x,
- window->abs_y,
- window->width,
- window->height);
+ if (gdk_window_has_impl (window))
+ {
+ return surface;
+ }
+ else
+ {
+ return cairo_surface_create_for_rectangle (surface,
+ window->abs_x,
+ window->abs_y,
+ window->width,
+ window->height);
+ }
}
/**